import { createRouter, createWebHistory } from "vue-router";

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: "/",
      name: "login",
      component: () => import("../views/login.vue"),
    },
    {
      path: "/register",
      name: "register",
      component: () => import("../views/register.vue"),
    },
    {
      path: "/ceshi",
      component: () => import("../views/ceshi.vue"),
    },
    {
      path: "/home",
      component: () => import("../views/home.vue"),
      children: [
        {
          path: "teacher",
          component: () => import("../views/teacher_backstage.vue"),
        },{
          path: "college",
          component: () => import("../views/college.vue"),
        },{
          path:'employment',
          component: () => import("../views/employment.vue"),
        },
        {
          path: 'permissionManage',
          component: () => import("../views/permissionManage.vue")
        }
      ],
    },
  ],
});

export default router;
